package com.example.demo;

import com.baidu.bas.core.annotation.EruptScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author liuzhenchuan@foxmail.com
 * @date 2020/12/16
 */
@SpringBootApplication
@ComponentScan({"com.baidu.bas","com.example.demo","com.sqltoy.quickstart"})
@EntityScan({"com.baidu.bas","com.example.demo"})
@EruptScan({"com.baidu.bas","com.example.demo"})
@EnableSwagger2
@EnableTransactionManagement
@EnableScheduling
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
}
